package org.dromara.test;

import cn.hutool.json.JSONUtil;
import org.dromara.common.core.utils.OpenIdGenerator;

import java.util.HashMap;
import java.util.Map;

public class test {
    public static void main(String[] args) {

        String s = OpenIdGenerator.generate32BitOpenId("1", "34ed59f0744b4786bc7fd5ec44bc8e11");
        System.out.println(s);
//        Map<String, Object> payloadMap =  new HashMap<String, Object>();
//        Map<String, Object> daMap =  new HashMap<String, Object>();
//        payloadMap.put("Ev", "8004");
//        payloadMap.put("V", "1.0");
//        payloadMap.put("T", (int) (System.currentTimeMillis() / 1000));
//
//        daMap.put("r1", "0");
//        daMap.put("r3", 0);
//        payloadMap.put("Da", daMap);
//        System.out.println(JSONUtil.toJsonPrettyStr(payloadMap));
    }
}
